<?php
get_header();

get_sidebar();
?>
			<div class="products-content">
                	<?php 
					$count = 0;
					?>
						<?php 
						
						$args = array( 'post_type' => 'product'
							, 'stock' => 1
							, 'orderby' =>'rand'
							,'order' => 'DESC' 
						);
        				$loop = new WP_Query( $args );
						
						while($loop->have_posts()) : $loop->the_post(); 
							global $product;
						
						?>
                        <?php 
							$count ++; 
							if($count > 8)
							{
								break;
							}
						?>
                        	<div class="right-best-sellers">
                                <?php don_the_thumbnail(); ?>
                                <div class="product-title"><a href='<?php the_permalink(); ?>'><?php echo $loop->post->post_title ?></a></div>
                                <a href='<?php the_permalink(); ?>'><div class="product-price"><?php echo $product->get_price_html(); ?></div></a>
                    		</div>
						<?php endwhile; ?>
			</div><!-- products-content -->
		</div>
	</div>
</body>
</html>